package edu.se.jai.lesson04guess2.model.entity;

import edu.se.jai.lesson04guess2.model.GameStatus;
import lombok.Data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 游戏房间模型
 */
@Data
public class GameRoom {
    
    /**
     * 房间ID
     */
    private String roomId;
    
    /**
     * 房间创建者会话ID
     */
    private String creatorSessionId;

    /**
     * 目标数字
     */
    private Integer targetNumber;
    
    /**
     * 游戏状态
     */
    private GameStatus status;

    /**
     * 房间内玩家列表
     */
    private Map<String, Player> players = new ConcurrentHashMap<>();
}

